import request from '@/utils/request'

// 查询分红列表
export function listHong(query) {
  return request({
    url: '/system/hong/list',
    method: 'get',
    params: query
  })
}

// 查询分红详细
export function getHong(id) {
  return request({
    url: '/system/hong/' + id,
    method: 'get'
  })
}

// 新增分红
export function addHong(data) {
  return request({
    url: '/system/hong',
    method: 'post',
    data: data
  })
}

// 修改分红
export function updateHong(data) {
  return request({
    url: '/system/hong',
    method: 'put',
    data: data
  })
}

// 删除分红
export function delHong(id) {
  return request({
    url: '/system/hong/' + id,
    method: 'delete'
  })
}
